package com.yxw.springmvc.userBehavior.security;

import java.io.IOException;
import java.io.OutputStream;

/**
 * Created by hp on 2016/9/23.
 */
public interface Encoder {
    int encode(byte[] data, int off, int length, OutputStream out) throws IOException;

    int decode(byte[] data, int off, int length, OutputStream out) throws IOException;

    int decode(String data, OutputStream out) throws IOException;
}
